package com.project.baowei.net;


import com.project.baowei.bean.request.LoginRequest;
import com.project.baowei.bean.request.VerifyRequest;
import com.project.baowei.bean.respoes.LoginBean;
import com.project.baowei.bean.respoes.VerifyBean;
import com.wangshen.base.net.bean.BaseAppEntity;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;

public interface ApiService {
    /**
     * 登录
     * @return
     */
    @POST("MANAGEMENT/api/officer/login")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<LoginBean>> signIn(@Body LoginRequest body);

    /**
     * 验证
     * @return
     */
    @POST("MANAGEMENT/api/officer/verify")
    @Headers("Content-Type:application/json;charset=UTF-8")
    Observable<BaseAppEntity<VerifyBean>> verify(@Body VerifyRequest body);
}

